<?php
/* 
 * SVM Initialization in PHP.
 * Note: Generate a model first from the given training data.
 * 
 * Author: Baron Gerarld S. Manzano
 * 
 */

set_time_limit(0);
$time0 = time();
include "phpsvm_lib/svm.php";
 
$svm = new PHPSVM();
$svm->train('training_values.dat', 'training.svm');
echo "Training done.";
$time1 = time();
echo "<br />Elapsed time: " . ($time1 - $time0);
?>